package regex;

public class Demo03_regex {
    public static void main(String[] args) {

        //String regex = ".";//.代表任意字符

        //String regex = ".."//..代表两个任意字符

        //String regex = "\\d";//代表[0-9]

        //String regex = "\\D";//代表[^0-9]除了0-9

//        String regex = "\\s";//代表空白字符,
//        代表空白字符：空格、tab键
//        //[ \t\n\f\r]

//          String regex = "\\S";//代表非空白字符
//          System.out.println("1".matches(regex));

//        String regex = "\\w";//单词字符
//        System.out.println("a".matches(regex));

//        String regex = "\\W";//非单词字符
//        System.out.println("我".matches(regex));


    }
}
